<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<button type="button" name="hello">点我</button>
		<!-- </form> -->
		
		<script type="text/javascript">
			
			let checkboxEle = document.getElementsByName('hello')[0];
			alert(checkboxEle.textContent)
		</script>
	</body>
</html>
